package com.kuwou.workobject.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.toolkit.Db;
import com.kuwou.workobject.pojo.entity.SingerList;
import com.kuwou.workobject.pojo.vo.SingerBasicInfoVo;
import com.kuwou.workobject.service.SingerBasicInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequiredArgsConstructor
@RequestMapping("/singerBasicInfo")
@Controller
public class SingerBasicInfoController {

    private final SingerBasicInfoService singerBasicInfoService;

    @RequestMapping("/getBasicInfo")
    @ResponseBody
    public List<SingerBasicInfoVo> getBasicInfo(String singerName){
        return singerBasicInfoService.getBasicInfo(singerName);
    }

}
